<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $notes=M('itcast_category');
        $lists=$notes->select();
        $this->assign("rows",$lists);//$lists是二维数组
        $this->display();
    }

}